/*
 * commons is a based project implemented
 * Copyright (C) 2024 Jasmine
 */
package com.commons.ip.props;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * ip2region 配置类
 * 
 * @description
 * @version 1.0
 * @author Jasmine
 * @since 2024-01-08 10:22:22
 * @see Ip2regionProperties
 */
@ConfigurationProperties(Ip2regionProperties.PREFIX)
public class Ip2regionProperties {
    public static final String PREFIX = "ip2region";

    /**
     * ip2region.db 文件路径
     */
    private String dbFileLocation = "classpath:ip2region/ip2region.xdb";

    /**
     * ipv6wry.db 文件路径
     */
    private String ipv6dbFileLocation = "classpath:ip2region/ipv6wry.db";

    public String getDbFileLocation() {
        return dbFileLocation;
    }

    public void setDbFileLocation(String dbFileLocation) {
        this.dbFileLocation = dbFileLocation;
    }

    public String getIpv6dbFileLocation() {
        return ipv6dbFileLocation;
    }

    public void setIpv6dbFileLocation(String ipv6dbFileLocation) {
        this.ipv6dbFileLocation = ipv6dbFileLocation;
    }
}
